home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_05
/
gilhooly
/
winjes.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-09
|
1KB
|
46 lines
#include <windows.h>
#ifndef RC_INVOKED
#include <winsock.h>
#include <memory.h>
#endif
#include "resource.h"
#define VERSION (LPSTR)"WinJES 1.0"
#define WM_SOCKET WM_USER+50
#define MAXTEXT 256
#define MAXMSG 30
#define MAXNAME 80
#define MAXBUFFER 128
#define MAXHOST 65
#define MYPORT 10000
#define IDM_SEND WM_USER+100
#define IDM_ABOUT WM_USER+110
#pragma pack(1)
// data structures
typedef struct _Message
{
char szCommand[MAXBUFFER];
char szHostName[MAXHOST];
} Message;
// globals
#ifndef GLOBALS
#define ALLOC extern
#else
#define ALLOC
#endif
ALLOC Message InMessage;
ALLOC Message OutMessage;
ALLOC char szMsg[MAXMSG];
ALLOC HANDLE hInst; // global instance handle
ALLOC int sock; // socket
// prototypes
#ifndef RC_INVOKED
int PASCAL WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
BOOL InitApplication(HINSTANCE);
BOOL InitInstance(HINSTANCE, int);
long CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK HostProc(HWND, UINT, WPARAM, LPARAM);
BOOL CALLBACK AboutProc(HWND, UINT, WPARAM, LPARAM);
#endif